import request from '@/utils/request'

// 查询实时动作运行列表
export function listRunning(query) {
  return request({
    url: '/action/running/list',
    method: 'get',
    params: query
  })
}

// 查询实时动作运行详细
export function getRunning(id) {
  return request({
    url: '/action/running/' + id,
    method: 'get'
  })
}

// 新增实时动作运行
export function addRunning(data) {
  return request({
    url: '/action/running',
    method: 'post',
    data: data
  })
}

// 修改实时动作运行
export function updateRunning(data) {
  return request({
    url: '/action/running',
    method: 'put',
    data: data
  })
}

// 删除实时动作运行
export function delRunning(id) {
  return request({
    url: '/action/running/' + id,
    method: 'delete'
  })
}
